import request from '@/utils/request'

// 查询班次管理列表
export function listShiftmanagement(query) {
  return request({
    url: '/system/shiftmanagement/list',
    method: 'get',
    params: query
  })
}

// 查询班次管理详细
export function getShiftmanagement(id) {
  return request({
    url: '/system/shiftmanagement/' + id,
    method: 'get'
  })
}

// 新增班次管理
export function addShiftmanagement(data) {
  return request({
    url: '/system/shiftmanagement',
    method: 'post',
    data: data
  })
}

// 修改班次管理
export function updateShiftmanagement(data) {
  return request({
    url: '/system/shiftmanagement',
    method: 'put',
    data: data
  })
}

// 删除班次管理
export function delShiftmanagement(id) {
  return request({
    url: '/system/shiftmanagement/' + id,
    method: 'delete'
  })
}
